﻿namespace QingZhouLinYe.HttpApi.Models.Converters
{
    public class Point
    {
        /// <summary>
        /// 经度
        /// </summary>
        public double X { get; set; }
        /// <summary>
        /// 纬度
        /// </summary>
        public double Y { get; set; }

        /// <summary>
        /// 海拔
        /// </summary>
        public double Z { get; set; }

        public Point(double x = 0, double y = 0, double z = 0)
        {
            X = x;
            Y = y;
            Z = z;
        }

        public override string ToString()
        {
            return $"POINT ({X} {Y} {Z})";
        }
    }
}
